package com.mb.app.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 订单支付表
 * </p>
 *
 * @author liliping
 * @since 2019-04-25
 */
@TableName("tb_order_pay")
public class TbOrderPay implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 支付订单编号
	 */
	@TableId(value="pay_order_id",type = IdType.INPUT)
	private String payOrderId;

	/**
	 * 订单编号
	 */
	@TableField(value="order_id")
	private String orderId;

	/**
	 * 支付金额
	 */
	@TableField(value="pay_amt")
	private BigDecimal payAmt;

	/**
	 * 支付方式 1:支付宝 2:微信
	 */
	@TableField(value="pay_method")
	private Integer payMethod;

	/**
	 * 支付时间
	 */
	@TableField(value="pay_time")
	private Date payTime;

	/**
	 * 交易创建时间
	 */
	@TableField(value="create_time")
	private Date createTime;

	/**
	 * 支付状态 0:待支付 1:支付成功  2:支付失败 9:取消支付
	 */
	@TableField(value="pay_status")
	private Integer payStatus;

	/**
	 * 支付完成时间
	 */
	@TableField(value="finish_pay_time")
	private Date finishPayTime;

	/**
	 * 支付平台交易流水号
	 */
	@TableField(value="trade_no")
	private String tradeNo;

	/**
	 * 支付参数
	 */
	@TableField(value="pay_params")
	private String payParams;

	/**
	 * 是否已退款 0:未退款 1:已退款
	 */
	@TableField(value="is_return")
	private Integer isReturn;

	/**
	 * 退款金额
	 */
	@TableField(value="return_amt")
	private BigDecimal returnAmt;

	/**
	 * 退款时间
	 */
	@TableField(value="last_return_time")
	private Date lastReturnTime;


	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getPayOrderId() {
		return payOrderId;
	}

	public void setPayOrderId(String payOrderId) {
		this.payOrderId = payOrderId;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public BigDecimal getPayAmt() {
		return payAmt;
	}

	public void setPayAmt(BigDecimal payAmt) {
		this.payAmt = payAmt;
	}

	public Integer getPayMethod() {
		return payMethod;
	}

	public void setPayMethod(Integer payMethod) {
		this.payMethod = payMethod;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public Integer getPayStatus() {
		return payStatus;
	}

	public void setPayStatus(Integer payStatus) {
		this.payStatus = payStatus;
	}

	public Date getFinishPayTime() {
		return finishPayTime;
	}

	public void setFinishPayTime(Date finishPayTime) {
		this.finishPayTime = finishPayTime;
	}

	public String getTradeNo() {
		return tradeNo;
	}

	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}

	public String getPayParams() {
		return payParams;
	}

	public void setPayParams(String payParams) {
		this.payParams = payParams;
	}

	public Integer getIsReturn() {
		return isReturn;
	}

	public void setIsReturn(Integer isReturn) {
		this.isReturn = isReturn;
	}

	public BigDecimal getReturnAmt() {
		return returnAmt;
	}

	public void setReturnAmt(BigDecimal returnAmt) {
		this.returnAmt = returnAmt;
	}

	public Date getLastReturnTime() {
		return lastReturnTime;
	}

	public void setLastReturnTime(Date lastReturnTime) {
		this.lastReturnTime = lastReturnTime;
	}

}
